﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AppConfigVerifier
{
	public class GlobalInfo : IExtensibleObject
	{
		readonly ExtensionRepository repository;
		public GlobalInfo(string content)
		{
			this.content = content;
			log = new Logger<GlobalInfo>(this, content);
			repository = new ExtensionRepository(this);
		}

		private readonly String content;
		public String Content
		{
			get
			{
				return content;
			}
		}

		private readonly Logger<GlobalInfo> log;
		public Logger<GlobalInfo> Log
		{
			get
			{
				return log;
			}
		}

		public T GetExtension<T>()
		{
			return repository.GetExtension<T>();
		}
	}
}
